package se.teamstat.client.gui;

import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.layout.AccordionLayout;

public class EastPanel extends Panel {
	public EastPanel() {
		init();
	}
	public void init() {
        setBodyStyle("background-color:#BCBCBC");   
        setCollapsible(true);   
        setWidth(225);
        
        Panel accordionPanel = createAccordionPanel(); 
        accordionPanel.setHeight(500);
        add(accordionPanel);
	}
	
	private Panel createAccordionPanel() {   
        Panel accordionPanel = new Panel();
        accordionPanel.setAutoWidth(true);
        accordionPanel.setBodyStyle("background-color:#BCBCBC");   
        accordionPanel.setLayout(new AccordionLayout(true));   
  
        Panel panelOne = new Panel("Panel 1", "<p>Panel1 content!</p>");   
        panelOne.setIconCls("settings-icon");
        panelOne.setBodyStyle("background-color:#BCBCBC");   
        accordionPanel.add(panelOne);   
  
        Panel panelTwo = new Panel("Panel 2", "<p>Panel2 content!</p>");   
        panelTwo.setIconCls("folder-icon");
        panelTwo.setBodyStyle("background-color:#EEEEEE");   
        accordionPanel.add(panelTwo);   
  
        Panel panelThree = new Panel("Panel 3", "<p>Panel3 content!</p>");   
        panelThree.setIconCls("user-add-icon");
        panelThree.setBodyStyle("background-color:#BCBCBC");   
        accordionPanel.add(panelThree);   
  
        return accordionPanel;   
    }
	
	
}
